package com.example.demo.web

import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

/**
 * Created by jinmingjiang on 2017/8/31.
 */
@RestController
@RequestMapping("/")
class IndexController {

    @GetMapping("/")
    fun index(): String {
        return "hello kotlin"
    }
}

